package team.seekers.hula.question.questionUser.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import team.seekers.hula.common.annotation.ApiResponseBody;
import team.seekers.hula.common.entity.PageResult;
import team.seekers.hula.island.islandUser.entity.dto.IslandUserUpdateDTO;
import team.seekers.hula.question.questionUser.entity.dto.QuestionUserManagePageDTO;
import team.seekers.hula.question.questionUser.entity.dto.QuestionUserUpdateDTO;
import team.seekers.hula.question.questionUser.entity.vo.QuestionUserManagePageVO;
import team.seekers.hula.question.questionUser.service.QuestionUserManageService;

import javax.annotation.Resource;

/**
 * @author hbc
 */
@Controller
@ApiResponseBody
@RequestMapping("/manage/question/user")
public class QuestionUserManageController {

    @Resource
    private QuestionUserManageService questionUserManageService;

    /**
     *
     * 问题用户管理
     */
    @GetMapping("/page")
    public PageResult<QuestionUserManagePageVO> pageOrderTime(QuestionUserManagePageDTO pageDTO) {
        return questionUserManageService.pageOrderTime(pageDTO);
    }


    @GetMapping("/role/update")
    public void updateRole(QuestionUserUpdateDTO questionUserUpdateDTO) {
        questionUserManageService.updateRole(questionUserUpdateDTO);
    }


}
